package colltection;

import java.util.Arrays;
import java.util.List;

public class ArrayToList {
    public static void main(String[] args) {
        String [] arr={"one","two","three","four","five"};
        System.out.println(Arrays.toString(arr));
        List <String> list=Arrays.asList(arr);
        System.out.println(list);
        list.set(1,"2");
        System.out.println(Arrays.toString(arr));
        System.out.println(list);
    }
}
